package com.tansuo365.test1.service.kucunservice.kucunimpl;

import com.tansuo365.test1.bean.kucunbean.WeixiuDetails;
import com.tansuo365.test1.mapper.kucunmapper.WeixiuDetailsMapper;
import com.tansuo365.test1.service.kucunservice.WeixiuDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WeixiuDetailsServiceImpl implements WeixiuDetailsService {

    @Resource
    private WeixiuDetailsMapper weixiuDetailsMapper;

    @Override
    public List<WeixiuDetails> listWeixiuDetailsByZongId(Integer zongzhangid) {
        return weixiuDetailsMapper.listWeixiuDetailsByZongId(zongzhangid);
    }

    @Override
    public List<WeixiuDetails> listWeixiuDetailsSelective(WeixiuDetails weixiuDetails) {
        return weixiuDetailsMapper.listWeixiuDetailsSelective(weixiuDetails);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return weixiuDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteByZongId(Integer zongzhangid) {
        return weixiuDetailsMapper.deleteByZongId(zongzhangid);
    }

    @Override
    public int deleteByZongIdArr(Integer[] ids) {
        return weixiuDetailsMapper.deleteByZongIdArr(ids);
    }

    @Override
    public int insertSelective(WeixiuDetails weixiuDetails) {
        return weixiuDetailsMapper.insertSelective(weixiuDetails);
    }

    @Override
    public WeixiuDetails selectByPrimaryKey(Integer id) {
        return weixiuDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(WeixiuDetails weixiuDetails) {
        return weixiuDetailsMapper.updateByPrimaryKeySelective(weixiuDetails);
    }

    @Override
    public int updateDZhuangtaiByZIds(Integer[] ids) {
        return weixiuDetailsMapper.updateDZhuangtaiByZIds(ids);
    }
}
